package Test;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;

/**
 * @Auther: lizhipeng
 * @Date: 2024-10-05 - 10 - 05 - 16:45
 * @Description: Test
 * @version: 1.0
 */
public class TestHashMap {
    public static void main(String[] args) {
        HashMap<Integer,String> hashMap = new HashMap<Integer, String>();
        hashMap.put(1,"应用层");
        hashMap.put(2,"传输层");
        hashMap.put(3,"网络层");
        hashMap.put(4,"数据链路层");

        //遍历
//        Iterator<HashMap<Integer,String>> iterator = hashMap;


    }
}
